package com.zxb;//已完成

import java.util.List;
import java.util.Scanner;

public class ChoiceProgress {
    public static void choiceProgress()
    {
        boolean flag = true;
        //输入选择的功能键
        Scanner sc = new Scanner(System.in);
        while (flag)
        {
            int choice = sc.nextInt();
            switch (choice)
            {
                case 1:
                    Function.addStudent();
                    break;
                case 2:
                    Function.deleteStudent();
                    break;
                case 3:
                    Function.updateStudent();
                    break;
                 case 4:
                    Function.personalStudent();
                    break;
                case 5:
                    Function.queryStudent();
                    break;
                case 6:
                    System.out.println("您已退出系统！");
                    flag  = false;
                    break;
                default:
                    System.out.println("您的输入有误！请重新输入！");
            }
            if(flag){
                ShowMenu.showMenu();
            }
        }

    }
}
